#include <iostream>
#include <iostream>
#include <mutex>
#include <unistd.h>
#include <string>
#include <vector>
#include <unordered_map>
#include <pthread.h>

#include "Msg.h"

int main()
{
    CMsg ms(REGISTER);
    ms.SetNameValue("陈乃", "11234");
    ms.msg_type_ = 1;
    std::string msg;
    ms.GetString(msg);
    CMsg ms1;
    ms1.ParseString(1, msg);
    std::cout<<ms1.msg_type_;
    
    return 0;
}